<DIV id=sidebar>
    {% block loginmenu %}
    <DIV id=login>
        <H3>Login</H3>
        <div id="gravatar">
        <img src="{{user_gravatar_url}}">  <b> {{user_nickname}} </b>
        </div>
        <UL>
                {% if administrator %}
            <LI><a href='/create/blog' onclick="this.blur()">Admin/Add New Blog</a>
            <LI><a href='/create/page' onclick="this.blur()">Admin/Add New Page</a>
            <LI><a href='/admin' onclick="this.blur()">Admin/System Configuration</a>
                {% endif %}
            <LI><a href="{{ url }}" onclick="this.blur()">{{ url_linktext }}</a>
            </LI>
        </UL>
    </DIV>
    {% endblock %}   
    {# include "module_plugin/greeting.html" #}
    <div id="comments">
        <h2>Recent comments</h2>
        {% for reaction in recentReactions %}
        <div class="ch">
          <div class="ct">({{reaction.weblog.commentcount}})To:&nbsp;&nbsp;<a href="/{{reaction.weblog.permalink}}#reactions">{{reaction.weblog.title}}</a></div>
          <div>
            <div class="ca">{{reaction.author}}</div>
            <div class="cd">{{reaction.date|date:"m-d H:i"}}</div>
          </div>
          <div class="cc"><a href="/{{reaction.weblog.permalink}}#reactions">{{reaction.content}}</a></div>
        </div>
        {% endfor %}        
    </div>
    {% include "tagclound.html" %}
    <div id="archives">
        <h2>Archives</h2>
        <ul>
            {% for archive in  archiveList %}
            <li><a href='/archive/{{archive.monthyear|replace:" -"}}'>{{ archive.monthyear }} ({{archive.weblogcount}})</a></li>
            {% endfor %}
        </ul>
    </div>      
    {% if BLOG.google_ajax_feed_enable %}
      {% include "google_ajax_feed.html" %}
    {% endif %}  
    <div id="links">
        <h2>Links</h2>
        <ul>
            <li><a target="_blank" href="http://www.google.com/reader">Google Reader</a></li>
            <li><a target="_blank" href="http://code.google.com/p/gzguoer">Site Code</a><li>
            <li><a target="_blank" href="http://gzguoer.appspot.com">Chaos Sanctuary</a><li>
        </ul>
    </div>
    <div id="subscribe">
       <div align="center">
        <strong style="color:#FFF;background:#000">{{counter}} </strong>
       </div>
      <a href="/atom" target="_blank"><img src="/img/feed-icon-16x16.png" alt="Subscribe to this blog">Subscribe to this blog. </a>
    </div>
</DIV>
